package org.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.springboot.common.entity.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 水分灌溉信息
 *
 * @author Fz
 * @since 1.0.0 2024-02-26
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("moisture_control")
public class MoistureControl extends BaseEntity {

    @Column(name = "irrigation_unit_uuid", comment = "灌溉单元基本信息UUID", type = MySqlTypeConstant.VARCHAR, length = 36)
    private String irrigationUnitUuid;

    /**
     * 数据来源设备名称
     */
    @Column(name = "equipment_name", comment = "数据来源设备名称", length = 100)
    private String equipmentName;

    /**
     * 数据来源设备ID
     */
    @Column(name = "equipment_id", comment = "数据来源设备ID")
    private String equipmentId;

    /**
     * 数据来源设备值
     */
    @Column(name = "equipment_value", comment = "数据来源设备值")
    private String equipmentValue;

    /**
     * 灌溉水量上限
     */
    @Column(name = "volume_upper", comment = "灌溉水量上限", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float volumeUpper;

    /**
     * 灌溉水量上限
     */
    @Column(name = "volume_lower", comment = "灌溉水量下限", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float volumeLower;

    /**
     * 决策灌溉水量mm
     */
    @Column(name = "irrigation_volume", comment = "决策灌溉水量mm" , type = MySqlTypeConstant.FLOAT)
    private Float irrigationVolume;

    /**
     * 根系深度
     */
    @Column(name = "depth", comment = "根系深度", type = MySqlTypeConstant.FLOAT, decimalLength = 3)
    private Float depth;

}